package com.pro.service.imple;/*
    ClassName:JurisdictionServiceImple
    Package:com.pro.service.imple
    Description:
    @Date:2021/11/25 14:15
    @Author: 赵自强
*/

import com.pro.dao.JurisdictionMapper;
import com.pro.entity.Closure;
import com.pro.entity.JsDept;
import com.pro.entity.JsUser;
import com.pro.entity.Unseal;
import com.pro.service.JurisdictionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class JurisdictionServiceImple implements JurisdictionService {

    @Autowired
    private JurisdictionMapper jurisdictionMapper;

    @Override
    public List<JsDept> getZtree() {
        return jurisdictionMapper.getZtree();
    }

    @Override
    public List<JsUser> getBackstageStaffs(Integer deptId) {
        return jurisdictionMapper.getBackstageStaffs(deptId);
    }

    @Override
    public List<JsUser> retrieval(JsUser jsUser) {
        return jurisdictionMapper.retrieval(jsUser);
    }

    @Override
    public Boolean enableAccount(Integer enabled, Integer userId) {
        return jurisdictionMapper.enableAccount(enabled,userId);
    }

    @Override
    public List<JsUser> advancedRetrieval(JsUser jsUser) {
        return jurisdictionMapper.advancedRetrieval(jsUser);
    }

    @Override
    public Boolean addNode(JsDept jsDept) {
        return jurisdictionMapper.addNode(jsDept);
    }

    @Override
    public Boolean delNode(Integer id) {
        return jurisdictionMapper.delNode(id);
    }

    @Override
    public Boolean editNode(JsDept jsDept) {
        return jurisdictionMapper.editNode(jsDept);
    }

    @Override
    public Boolean kgStatus(JsUser jsUser) {
        return jurisdictionMapper.kgStatus(jsUser);
    }

    @Override
    public JsUser getUserById(Integer userId) {
        return jurisdictionMapper.getUserById(userId);
    }

    @Override
    public Boolean editUserById(JsUser jsUser) {
        return jurisdictionMapper.editUserById(jsUser);
    }

    @Override
    public List<JsUser> getAuthority(Integer userId) {
        return jurisdictionMapper.getAuthority(userId);
    }

    @Override
    public Boolean editAuthority(Integer userId, Integer authorityId) {
        return jurisdictionMapper.editAuthority(userId,authorityId);
    }

    @Override
    public Boolean delAuthority(Integer userId) {
        return jurisdictionMapper.delAuthority(userId);
    }

    @Override
    public Boolean shutDown(Closure closure) {
        return jurisdictionMapper.shutDown(closure);
    }

    @Override
    public Boolean statusANDenabled(Integer userId) {
        return jurisdictionMapper.statusANDenabled(userId);
    }

    @Override
    public Boolean delShutDown(Integer userId) {
        return jurisdictionMapper.delShutDown(userId);
    }

    @Override
    public Boolean addUser(JsUser jsUser) {
        return jurisdictionMapper.addUser(jsUser);
    }

    @Override
    public List<JsDept> retrievalDept(JsDept jsDept) {
        return jurisdictionMapper.retrievalDept(jsDept);
    }

    @Override
    public Boolean addDept(JsDept jsDept) {
        return jurisdictionMapper.addDept(jsDept);
    }

    @Override
    public Boolean editDept(JsDept jsDept) {
        return jurisdictionMapper.editDept(jsDept);
    }

    @Override
    public Boolean delDept(Integer id) {
        return jurisdictionMapper.delDept(id);
    }

    @Override
    public Boolean statusSwitch(Integer id, Integer status) {
        return jurisdictionMapper.statusSwitch(id,status);
    }

    @Override
    public List<Unseal> getUnsealList() {
        return jurisdictionMapper.getUnsealList();
    }

    @Override
    public Closure getShutDown(Integer userId) {
        return jurisdictionMapper.getShutDown(userId);
    }

    @Override
    public Boolean addUnseal(Unseal unseal) {
        return jurisdictionMapper.addUnseal(unseal);
    }

    @Override
    public List<Unseal> unsealRetrieval(Unseal unseal) {
        return jurisdictionMapper.unsealRetrieval(unseal);
    }

    @Override
    public Boolean addExcel(JsUser jsUser) {
        return jurisdictionMapper.addExcel(jsUser);
    }
}
